package com.fudan.dto.entities;

import java.io.Serializable;
import java.util.HashSet;
import java.util.Set;

import com.fudan.tool.IdHelper;

public class Room  implements Serializable{
	private Integer roomId;
	private User owner;
	private String roomName;
	
	private Set<User> users = new HashSet<User>();
	private Set<Question> questions = new HashSet<Question>();
	
	
	public Room() {
		super();
	}

	public Room(String roomName, User owner) {
		this.owner = owner;
		this.roomName = roomName;
	}

	public Set<Question> getQuestions() {
		return questions;
	}
	public void setQuestions(Set<Question> questions) {
		this.questions = questions;
	}
	public User getOwner() {
		return owner;
	}
	public void setOwner(User owner) {
		this.owner = owner;
	}
	public String getRoomName() {
		return roomName;
	}
	public void setRoomName(String roomName) {
		this.roomName = roomName;
	}
	public Integer getRoomId() {
		return roomId;
	}
	public void setRoomId(Integer roomId) {
		this.roomId = roomId;
	}

	public Set<User> getUsers() {
		return users;
	}

	public void setUsers(Set<User> users) {
		this.users = users;
	}

	@Override
	public String toString() {
		return "Room [roomId=" + roomId + ", owner=" + owner + ", roomName=" + roomName + ", users=" + users
				+ ", questions=" + questions + "]";
	}
	

}
